package com.woniuxy.yoga.coach.model.exception;

public enum CoachExceptionCode {

    COACH_EXCEPTION_CODE_FORMAT_ERROR(30001,"文件格式错误"),

    COACH_EXCEPTION_CODE_ID_CARD_EXIT(30002,"该身份证号码已经注册"),

    COACH_EXCEPTION_CODE_PHONE_EXIT(30003,"该联系方式已经注册"),

    COACH_EXCEPTION_CODE_BUSINESS_STORE_NO_EXIT(30004,"场馆不存在"),

    COACH_EXCEPTION_CODE_BUSINESS_STORE_STATE_ERROR(30005,"场馆状态异常"),

    COACH_EXCEPTION_CODE_ID_CARD_NO_LEGAL(30006,"身份证号码不合法"),

    COACH_EXCEPTION_CODE_COACH_NO_EXIT(30007,"教练账号不存在"),

    COACH_EXCEPTION_CODE_COACH_STATE_ERROR(30008,"教练账号状态异常"),

    COACH_EXCEPTION_CODE_PASS_ERROR(30009,"密码错误"),

    COACH_EXCEPTION_CODE_MINUTE(30010,"一分钟之内只能发送一次验证码"),

    COACH_EXCEPTION_CODE_HOUR(30011,"一小时总共只能发送五次验证码"),

    COACH_EXCEPTION_CODE_EXPIRE(30012,"验证码已经过期"),

    COACH_EXCEPTION_CODE_ERROR(30013,"验证码错误"),

    COACH_EXCEPTION_CODE_INCOMPLETE_COURSE(30014,"当前教练存在还未完成的课程,不能进行此操作"),

    COACH_EXCEPTION_CODE_PRIVATE_PRODUCT_NOT_EXIST(30015,"私教产品不存在"),

    COACH_EXCEPTION_CODE_PRIVATE_PRODUCT_STATE_ERROR(30016,"私教产品状态异常,不能进行此操作"),

    COACH_EXCEPTION_CODE_COACH_NOT_STORE(30017,"教练不属于该场馆,不能进行该操作");

    private Integer code;

    private String message;

    CoachExceptionCode(Integer code,String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }
}
